package nc.ui.gl.offset.ace.view;

import nc.ui.pub.bill.BillCardPanel;
import nc.vo.gl.offset.OffsetVO;

public class OffsetBillForm extends nc.ui.pubapp.uif2app.view.ShowUpableBillForm{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public static final String LIST = "list";
	
	public static final String CARD = "card";
	
	public OffsetBillForm() {
		super();
//		show(LIST, null);
	}
	
	public void show(String flag, OffsetVO[] headvos){
		
		if(LIST.equals(flag)){
			BillCardPanel temp = new BillCardPanel();
			temp.loadTemplet("0001ZZ10000000008T4S");
			this.billCardPanel.loadTemplet("0001ZZ10000000008T4S");
//			this.billCardPanel.setBillModel(temp.getBillModel());
			this.billCardPanel.getBillModel("OffsetVO").setBodyDataVO(headvos);
			this.billCardPanel.getBillModel("OffsetVO").loadLoadRelationItemValue();
			this.billCardPanel.getBillModel("OffsetVO").execLoadFormula();
		}else{
			this.billCardPanel.loadTemplet("1001ZZ10000000003NY5");
		}
		
		this.billCardPanel.updateUI();
	}

}
